<%--
/*
Assignment 1
Class ID        : SE0691
Group           : 1
Due Date        : 20 November 2012
I declare that this assignment is my own work
in accordance with FPT Policy.
*/
--%>
<%
    HttpSession newSession = request.getSession();
    if (newSession.getAttribute("currentUser") == null) {
        response.sendRedirect("../index.jsp");
    }
%>
<div id="header">
    <div id="logo">
        <h1><a href="#">myApartment</a></h1>
    </div>
    <div id="search">
        <form method="get" action="">
            <fieldset>
                Welcome <font color="blue"> <%=newSession.getAttribute("currentUser")%></font>! - <a href="../logout.jsp">[Logout]</a>
            </fieldset>
        </form>
    </div>
</div>
<!-- end #header -->
<div id="menu">
    <ul>
        <li><a href="index.jsp">Home</a></li>
        <li><a href="news.jsp">News</a></li>
        <li><a href="costs.jsp">Costs-Bill</a></li>
        <li><a href="myservices.jsp">Services</a></li>
    </ul>
</div>